﻿Namespace myBookmarks.Web
    Public Class PageCalculator
        Public Shared Function StartIndex(ByVal page As System.Nullable(Of Integer), ByVal rowsPerPage As Integer) As Integer
            Return If((page.HasValue AndAlso (page.Value > 1)), ((page.Value - 1) * rowsPerPage), 0)
        End Function
    End Class
End Namespace